package com.tyqx.hashchainbean.module;

import java.io.Serializable;

public class Authorize implements Serializable {
    private Integer recordid;

    private String grantoruid;

    private String granteeuid;

    private String grantorcompname;

    private String granteecompname;

    private Integer timestamp;

    private Integer authstarttime;

    private Integer authendtime;

    private Integer recordstarttime;

    private Integer recordendtime;

    private Integer flag;

    private static final long serialVersionUID = 1L;

    public Integer getRecordid() {
        return recordid;
    }

    public void setRecordid(Integer recordid) {
        this.recordid = recordid;
    }

    public String getGrantoruid() {
        return grantoruid;
    }

    public void setGrantoruid(String grantoruid) {
        this.grantoruid = grantoruid == null ? null : grantoruid.trim();
    }

    public String getGranteeuid() {
        return granteeuid;
    }

    public void setGranteeuid(String granteeuid) {
        this.granteeuid = granteeuid == null ? null : granteeuid.trim();
    }

    public String getGrantorcompname() {
        return grantorcompname;
    }

    public void setGrantorcompname(String grantorcompname) {
        this.grantorcompname = grantorcompname == null ? null : grantorcompname.trim();
    }

    public String getGranteecompname() {
        return granteecompname;
    }

    public void setGranteecompname(String granteecompname) {
        this.granteecompname = granteecompname == null ? null : granteecompname.trim();
    }

    public Integer getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Integer timestamp) {
        this.timestamp = timestamp;
    }

    public Integer getAuthstarttime() {
        return authstarttime;
    }

    public void setAuthstarttime(Integer authstarttime) {
        this.authstarttime = authstarttime;
    }

    public Integer getAuthendtime() {
        return authendtime;
    }

    public void setAuthendtime(Integer authendtime) {
        this.authendtime = authendtime;
    }

    public Integer getRecordstarttime() {
        return recordstarttime;
    }

    public void setRecordstarttime(Integer recordstarttime) {
        this.recordstarttime = recordstarttime;
    }

    public Integer getRecordendtime() {
        return recordendtime;
    }

    public void setRecordendtime(Integer recordendtime) {
        this.recordendtime = recordendtime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }


    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Authorize other = (Authorize) that;
        return (this.getRecordid() == null ? other.getRecordid() == null : this.getRecordid().equals(other.getRecordid()))
            && (this.getGrantoruid() == null ? other.getGrantoruid() == null : this.getGrantoruid().equals(other.getGrantoruid()))
            && (this.getGranteeuid() == null ? other.getGranteeuid() == null : this.getGranteeuid().equals(other.getGranteeuid()))
            && (this.getGrantorcompname() == null ? other.getGrantorcompname() == null : this.getGrantorcompname().equals(other.getGrantorcompname()))
            && (this.getGranteecompname() == null ? other.getGranteecompname() == null : this.getGranteecompname().equals(other.getGranteecompname()))
            && (this.getTimestamp() == null ? other.getTimestamp() == null : this.getTimestamp().equals(other.getTimestamp()))
            && (this.getAuthstarttime() == null ? other.getAuthstarttime() == null : this.getAuthstarttime().equals(other.getAuthstarttime()))
            && (this.getAuthendtime() == null ? other.getAuthendtime() == null : this.getAuthendtime().equals(other.getAuthendtime()))
            && (this.getRecordstarttime() == null ? other.getRecordstarttime() == null : this.getRecordstarttime().equals(other.getRecordstarttime()))
            && (this.getRecordendtime() == null ? other.getRecordendtime() == null : this.getRecordendtime().equals(other.getRecordendtime()))
            && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()));
    }


    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRecordid() == null) ? 0 : getRecordid().hashCode());
        result = prime * result + ((getGrantoruid() == null) ? 0 : getGrantoruid().hashCode());
        result = prime * result + ((getGranteeuid() == null) ? 0 : getGranteeuid().hashCode());
        result = prime * result + ((getGrantorcompname() == null) ? 0 : getGrantorcompname().hashCode());
        result = prime * result + ((getGranteecompname() == null) ? 0 : getGranteecompname().hashCode());
        result = prime * result + ((getTimestamp() == null) ? 0 : getTimestamp().hashCode());
        result = prime * result + ((getAuthstarttime() == null) ? 0 : getAuthstarttime().hashCode());
        result = prime * result + ((getAuthendtime() == null) ? 0 : getAuthendtime().hashCode());
        result = prime * result + ((getRecordstarttime() == null) ? 0 : getRecordstarttime().hashCode());
        result = prime * result + ((getRecordendtime() == null) ? 0 : getRecordendtime().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        return result;
    }


    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", recordid=").append(recordid);
        sb.append(", grantoruid=").append(grantoruid);
        sb.append(", granteeuid=").append(granteeuid);
        sb.append(", grantorcompname=").append(grantorcompname);
        sb.append(", granteecompname=").append(granteecompname);
        sb.append(", timestamp=").append(timestamp);
        sb.append(", authstarttime=").append(authstarttime);
        sb.append(", authendtime=").append(authendtime);
        sb.append(", recordstarttime=").append(recordstarttime);
        sb.append(", recordendtime=").append(recordendtime);
        sb.append(", flag=").append(flag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}